package main

import "fmt"

type Humaner interface {
	sayHi()
}

type Person interface {
	Humaner
	sayHello()
}

type Student struct {
	name string
}


func (this Student) sayHi() {
	fmt.Println("say Hi")
}

func (this Student)sayHello()  {
	fmt.Println("say Hello")
}

func main() {
	var per Person
	per = Student{"Mr"}
	var hum Humaner
	// 子类 = 父类（感觉没有意思）
	hum = per
	hum.sayHi()

}
